package galaxy.auth.provider.service.impl;

import galaxy.auth.provider.dao.MusicInfoMapper;
import galaxy.auth.provider.dto.reponse.ResponseBean;
import galaxy.auth.provider.dto.reponse.music.MusicRes;
import galaxy.auth.provider.service.IMusicInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MusicInfoServiceImpl  implements IMusicInfoService {

    @Autowired
    MusicInfoMapper  musicInfoMapper;

    @Override
     public  ResponseBean<List<MusicRes>>  getMusicList()
     {
         ResponseBean result=new ResponseBean();
         result.setSuccess(true);
         result.setData(musicInfoMapper.getMusicList());
         return  result;
     }

    @Override
    public ResponseBean<MusicRes>  getMusicInfo()
    {
        ResponseBean result=new ResponseBean();
        result.setSuccess(true);
        result.setData(musicInfoMapper.getMusicInfo());
        return  result;
    }
}



